package com.probox.common.core.constant;

/**
 * 缓存的key 常量
 *
 * @author usoft
 */
public class CacheConstants
{
    /**
     * 令牌自定义标识
     */
    public static final String HEADER = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";
    public static final String DETAILS_STORE_ID = "store_id";

    /**
     * 医生的ID
     */
    public static final String DETAILS_DOCTOR_ID = "doctor_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";

    /**
     * 平台Id字段
     */
    public static final String PLATFORM_HEADER = "platform_uid";

    /**
     * 机构id
     */
    public static final String ORGAN_ID="organ_id";

    /**
     * 供应商Id（平台账号为NULL）
     */
    public static final String SUPPLIER_UID = "supplier_uid";

    /**
     * 请求状态
     */
    public static final String STATUS_HEADER = "request_status";

    /**
     * 前端客户ID
     */
    public static final String CUSTOMER_ID = "customer_id";

    /**
     * 前端
     */
    public static final  String CUSTOMER_ORG_ID = "customer_org_id";

    /**
     * 前端客户所属的appId
     */
    public static final String CUSTOMER_APP_ID = "CustomerAppId";

    /**
     * 前端客户所属的商户ID
     */
    public static final String CUSTOMER_MCH_ID = "Customer_MCH_Id";
    /**
     * 前端客户的账号ID
     */
    public static final String CUSTOMER_ACCOUNT_ID = "customer_account_id";

    public static final String CUSTOMER_ACCOUNT_STATUS = "customer_account_status";

    /**
     * 前端客户的头像
     */
    public static final String CUSTOMER_HEAD_IMG = "customer_head_img";

    //客户访问端口
    public static final String HEADER_CUSTOMER_PORT = "CustomerPort";
    //前端客户的的标识
    public static final String HEADER_CUSTOMER = "CustomerToken";
    //客户的缓存前缀
    public final static String LOGIN_TOKEN_KEY_CUSTOMER = "probox-CustomerToken:";

    //微信的缓存前缀
    public final static String LOGIN_TOKEN_KEY_WECHAT = "WechatToken:";

    /**
     * 前端客户名字段
     */
    public static final String CUSTOMER_USERNAME = "customer_username";
    /**
     * 前端客户IP地址
     */
    public static final String CUSTOMER_IP = "customer_ip";

    /**
     * 前端客户登录来源
     */
    public static final String CUSTOMER_PORT = "customer_source_port";

    /**
     * 前端客户的电话号码
     */
    public static final String CUSTOMER_PHONE = "customer_phone";

    /**
     * 前端客户所属平台
     */
    public static final String CUSTOMER_PLATFORM = "customer_platform_id";
    /**
     * 前端客户的Open ID
     */
    public static final String CUSTOMER_OPEN_ID = "customer_open_id";

    /**
     * 前端客户的访问secret key
     */
    public static final String CUSTOMER_SECRET_KEY = "customer_secret_key";


    //医生访问端口
    public static final String HEADER_PORT = "AppPort";
}
